.class Lcom/estrongs/android/ui/dialog/j0$d;
.super Ljava/lang/Object;
.source "NewSmbServerDialog.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/ui/dialog/j0;->f()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/estrongs/android/ui/dialog/j0;


# direct methods
.method constructor <init>(Lcom/estrongs/android/ui/dialog/j0;Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/j0$d;->b:Lcom/estrongs/android/ui/dialog/j0;

    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/j0$d;->a:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/j0$d;->a:Ljava/lang/String;

    invoke-static {v0}, Les/r40;->b(Ljava/lang/String;)I

    move-result v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/j0$d;->b:Lcom/estrongs/android/ui/dialog/j0;

    invoke-static {v0}, Lcom/estrongs/android/ui/dialog/j0;->f(Lcom/estrongs/android/ui/dialog/j0;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lcom/estrongs/android/ui/dialog/j0$d$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dialog/j0$d$a;-><init>(Lcom/estrongs/android/ui/dialog/j0$d;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 3
    invoke-static {}, Les/dj;->b()V

    return-void

    :cond_0
    const/4 v1, -0x2

    if-ne v0, v1, :cond_1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/j0$d;->b:Lcom/estrongs/android/ui/dialog/j0;

    invoke-static {v0}, Lcom/estrongs/android/ui/dialog/j0;->f(Lcom/estrongs/android/ui/dialog/j0;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lcom/estrongs/android/ui/dialog/j0$d$b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dialog/j0$d$b;-><init>(Lcom/estrongs/android/ui/dialog/j0$d;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 5
    invoke-static {}, Les/dj;->b()V

    return-void

    .line 6
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/j0$d;->b:Lcom/estrongs/android/ui/dialog/j0;

    invoke-static {v0}, Lcom/estrongs/android/ui/dialog/j0;->f(Lcom/estrongs/android/ui/dialog/j0;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lcom/estrongs/android/ui/dialog/j0$d$c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dialog/j0$d$c;-><init>(Lcom/estrongs/android/ui/dialog/j0$d;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/j0$d;->b:Lcom/estrongs/android/ui/dialog/j0;

    invoke-static {v0}, Lcom/estrongs/android/ui/dialog/j0;->g(Lcom/estrongs/android/ui/dialog/j0;)Landroid/widget/EditText;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    .line 8
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_2

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/j0$d;->a:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->h0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 10
    :cond_2
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/j0$d;->b:Lcom/estrongs/android/ui/dialog/j0;

    invoke-static {v1}, Lcom/estrongs/android/ui/dialog/j0;->h(Lcom/estrongs/android/ui/dialog/j0;)Z

    move-result v1

    if-nez v1, :cond_3

    .line 11
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/j0$d;->a:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Lcom/estrongs/android/pop/l;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 12
    :cond_3
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/j0$d;->b:Lcom/estrongs/android/ui/dialog/j0;

    invoke-static {v2}, Lcom/estrongs/android/ui/dialog/j0;->i(Lcom/estrongs/android/ui/dialog/j0;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/estrongs/android/pop/l;->r(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 13
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v2

    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/j0$d;->b:Lcom/estrongs/android/ui/dialog/j0;

    invoke-static {v3}, Lcom/estrongs/android/ui/dialog/j0;->i(Lcom/estrongs/android/ui/dialog/j0;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/estrongs/android/pop/l;->E(Ljava/lang/String;)V

    .line 14
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v2

    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/j0$d;->a:Ljava/lang/String;

    .line 15
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v4

    iget-object v5, p0, Lcom/estrongs/android/ui/dialog/j0$d;->b:Lcom/estrongs/android/ui/dialog/j0;

    invoke-static {v5}, Lcom/estrongs/android/ui/dialog/j0;->i(Lcom/estrongs/android/ui/dialog/j0;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/estrongs/android/pop/l;->A(Ljava/lang/String;)Z

    move-result v4

    .line 16
    invoke-virtual {v2, v3, v0, v4}, Lcom/estrongs/android/pop/l;->b(Ljava/lang/String;Ljava/lang/String;Z)V

    .line 17
    invoke-static {v1}, Lcom/estrongs/android/util/o0;->b(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 18
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/j0$d;->a:Ljava/lang/String;

    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/pop/l;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 19
    :cond_4
    :goto_0
    invoke-static {}, Les/dj;->b()V

    .line 20
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    const-string v1, "ensmbli"

    invoke-virtual {v0, v1}, Lcom/estrongs/android/statistics/b;->d(Ljava/lang/String;)V

    .line 21
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/j0$d;->b:Lcom/estrongs/android/ui/dialog/j0;

    invoke-static {v0}, Lcom/estrongs/android/ui/dialog/j0;->f(Lcom/estrongs/android/ui/dialog/j0;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lcom/estrongs/android/ui/dialog/j0$d$d;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dialog/j0$d$d;-><init>(Lcom/estrongs/android/ui/dialog/j0$d;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    return-void
.end method
